<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class OrderAppraiseRequest extends BasicRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'order_sn'		=> 'required',
            'score'		    => 'required|max:5'
        ];
    }
    
    public function messages(){
    	return [
			'order_sn.required'	=> '缺少订单号',
			'score.required'	=> '请选择评分',
			'score.max'	        => '请选择评分'
		];
	}
}
